﻿using System;

namespace UtilZ.Dotnet.Ex.Log
{
    /// <summary>
    /// 日志追加器接口
    /// </summary>
    public interface IAppender : IDisposable
    {
        /// <summary>
        /// 日志追加器名称
        /// </summary>
        string Name { get; set; }

        /// <summary>
        /// 获取配置对象
        /// </summary>
        BaseConfig Config { get; }

        /// <summary>
        /// 写日志
        /// </summary>
        /// <param name="item">日志项</param>
        void WriteLog(LogItem item);
    }
}
